import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
			path: '/',
			component: () => import('_v/main.vue'),
			children: [
				{
					path: '/',
					component: () => import('_v/home.vue')
				},
				{
					path: '/product',
					component: () => import('_v/product.vue')
				},
				{
					path: '/product/detail',
					component: () => import('_v/productDetail.vue')
				},
				{
					path: '/brands',
					component: () => import('_v/brands.vue')
				},
				{
					path: '/blog',
					component: () => import('_v/blog.vue')
				},
				{
					path: '/blog/detail',
					component: () => import('_v/blogDetail.vue')
				},
				{
					path: '/login',
					component: () => import('_v/login.vue')
				},
				{
					path: '/account',
					component: () => import('_v/account.vue')
				},
				{
					path: '/forget',
					component: () => import('_v/forget.vue')
				},
				{
					path: '/shipping',
					component: () => import('_v/shipping.vue')
				},
				{
					path: '/faqs',
					component: () => import('_v/faqs.vue')
				},
				{
					path: '/purchase-conditions',
					component: () => import('_v/purchaseConditions.vue')
				},
				{
					path: '/contact',
					component: () => import('_v/contact.vue')
				},
				{
					path: '/custom/account',
					component: () => import('_v/custom/index.vue')
				},
				{
					path: '/shopping/cart',
					component: () => import('_v/shoppingCart')
				},
			]
    },
		{
			path: '/checkout',
			component: () => import('_v/checkout')
		},
  ]
})
